package com.smart.carey.exception;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class CommonException extends RuntimeException {

    private String  errCode;

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public CommonException(String message) {
        super(message);
    }
    public CommonException(String errCode,String message) {
        super("{\"errCode\":\""+errCode+"\",\"message\":\""+message+"\"}");
        this.errCode = errCode;
    }




}
